<{include file="../common/iframe_header.tpl"}>
<form name='myForm1' id='myForm1' method='post' action='/webadmin/netquestion/Dobasic'>
    <div style='margin:10px;'>
        <table>
            <tr><td><h3>题目：</h3></td><td><h3><{$subject_info.question_num}> <{$subject_info.title}></h3></td></tr>
            <tr>
                <td>答案：</td>
                <td>
                    <input name='answer_desc' class="input-text" id="answer_desc" type='text' value='<{$answer_info.answer_desc}>'>
                </td>
            </tr>
            <tr><td colspan='2' style="text-align: center;"><input type='submit' class="button" value='提交'></td></tr>
        </table>
            <input type="hidden" name="answer_id" value="<{$answer_info.answer_id}>" /> 
            <input type='hidden' name='subject_id' value='<{$subject_id}>' />
        <input name='nq_id' type='hidden' value='<{$nq_id}>' />
    </div>
</form>
<script type='text/javascript' src="/js/jquery.uploadify.min.js"></script>
<link href="/css/uploadify.css" rel="stylesheet">
    <script>
        $(document).ready(function() {     
                var options = {         
                    beforeSubmit:  showRequest,  
                    success:       showResponse,
                    dataType:  'json'
                }
                $('#myForm1').ajaxForm(options); 
                
        });
            function showRequest(formData, jqForm, options) { 
                return true;
            }
            function showResponse(responseText, statusText, xhr, $form)  { 
                alert(responseText.note);
                if (responseText.status==1) {
                    window.parent.location.reload();
                }
            }
    </script>
    <{include file="../common/footer.tpl"}>